﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="OpponentAnalyze.aspx.cs" 
Inherits="Nivdal.OpponentAnalyze" Theme="SkinFile" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>    


<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="basic_element">
        <div class="red_title_no_padding">
            <div class="grey_title_inside_red floater">
                <asp:HyperLink ID="TeamHomePageHyperlink" runat="server" CssClass="team_name_white"></asp:HyperLink>
            </div>
            <div class="grey_title_triangle floater">
            </div>
        </div>
        <div class="padding5">
            <asp:HiddenField ID="Team2HiddenField" runat="server" />
            <asp:HiddenField ID="LanguageHiddenField" runat="server" />
            <br />
            <br />
            <asp:UpdatePanel ID="ChartsUpdatePanel" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <table style="width: 100%" cellpadding="2" cellspacing="0">
                        <tr>
                            <td style="vertical-align: top;">
                                <asp:Label ID="ComparisonAvgTitleLabel" runat="server" SkinID="GridLabel" Text="<%$ Resources:Resource, OpponentAnalyze_AverageMarksComparison  %>"></asp:Label>
                            </td>
                            <td style="vertical-align: top;">
                                <asp:Label ID="ComparisonMaxTitleLabel" runat="server" SkinID="GridLabel" Text="<%$ Resources:Resource, OpponentAnalyze_MaxMarksComparison  %>"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="LeagueCheckBox" runat="server" Text="<%$ Resources:Resource, Global_League %>"
                                                Checked="true" CssClass="NewsItemStyle" />
                                        </td>
                                        <td rowspan="3" style="vertical-align: bottom;">
                                            <asp:UpdateProgress ID="GraphsRefreshProgress" runat="server" AssociatedUpdatePanelID="ChartsUpdatePanel">
                                                <ProgressTemplate>
                                                    <div class="ajaxloader">
                                                        <asp:Image ID="ChartsProgressImage" runat="server" ImageUrl="~/Images/ajax-loader.gif" />
                                                    </div>
                                                </ProgressTemplate>
                                            </asp:UpdateProgress>
                                            <asp:Button ID="ReloadAvgGraphButton" runat="server" Text="<%$ Resources:Resource, Global_Change %>"
                                                CssClass="GreenSmallButtonStyle" OnClick="ReloadAvgGraph" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="CupCheckBox" runat="server" Text="<%$ Resources:Resource, Global_NationalCup %>"
                                                Checked="true" CssClass="NewsItemStyle" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="InternationalCupCheckBox" runat="server" Text="<%$ Resources:Resource, Global_InternationalCup %>"
                                                Checked="true" CssClass="NewsItemStyle" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Chart ID="ComparisonAvgChart" runat="server" Width="300" ImageLocation="~/Images/ChartsJunk/Chart#UID"
                                    ImageStorageMode="UseHttpHandler" ImageType="Png">
                                    <Titles>
                                        <asp:Title Name="Title1" Text="<%$ Resources:Resource, OpponentAnalyze_AverageRatingsGraphTitle %>"
                                            Alignment="TopLeft" Font="Arial, 12px, style=Bold">
                                        </asp:Title>
                                    </Titles>
                                    <Legends>
                                        <asp:Legend IsTextAutoFit="true" Name="Default" Font="Arial, 12px, style=Bold" Docking="Top">
                                        </asp:Legend>
                                    </Legends>
                                    <Series>
                                        <asp:Series Name="<%$ Resources:Resource, OpponentAnalyze_SeriesMyAverages %>" ChartType="Column"
                                            IsValueShownAsLabel="true">
                                        </asp:Series>
                                        <asp:Series Name="<%$ Resources:Resource, OpponentAnalyze_SeriesHisAverages %>" ChartType="Column"
                                            IsValueShownAsLabel="true">
                                        </asp:Series>
                                    </Series>
                                    <ChartAreas>
                                        <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                                            BackSecondaryColor="White" BackColor="Gainsboro" ShadowColor="Transparent" BackGradientStyle="TopBottom">
                                            <Area3DStyle Rotation="10" Perspective="10" Inclination="15" IsRightAngleAxes="False"
                                                WallWidth="0" IsClustered="False"></Area3DStyle>
                                            <AxisY LineColor="64, 64, 64, 64" IsLabelAutoFit="False" Interval="Auto">
                                                <LabelStyle Font="Arial, 8.25pt, style=Bold" />
                                                <MajorGrid LineColor="64, 64, 64, 64" />
                                            </AxisY>
                                            <AxisX LineColor="64, 64, 64, 64" IsLabelAutoFit="False">
                                                <LabelStyle Font="Arial, 8.25pt, style=Bold" IsStaggered="True" />
                                                <MajorGrid LineColor="64, 64, 64, 64" />
                                                <CustomLabels>
                                                    <asp:CustomLabel Text="<%$ Resources:Resource, OpponentAnalyze_GoalKeepersAxisXTitle %>"
                                                        FromPosition="0.5" ToPosition="1.5" />
                                                    <asp:CustomLabel Text="<%$ Resources:Resource, OpponentAnalyze_DefenceAxisXTitle %>"
                                                        FromPosition="1.5" ToPosition="2.5" />
                                                    <asp:CustomLabel Text="<%$ Resources:Resource, OpponentAnalyze_MidfieldAxisXTitle %>"
                                                        FromPosition="2.5" ToPosition="3.5" />
                                                    <asp:CustomLabel Text="<%$ Resources:Resource, OpponentAnalyze_AttackAxisXTitle %>"
                                                        FromPosition="3.5" ToPosition="4.5" />
                                                    <asp:CustomLabel Text="<%$ Resources:Resource, OpponentAnalyze_AllPositionsText %>"
                                                        FromPosition="4.5" ToPosition="5.5" />
                                                </CustomLabels>
                                            </AxisX>
                                        </asp:ChartArea>
                                    </ChartAreas>
                                </asp:Chart>
                            </td>
                            <td>
                                <asp:Chart ID="ComparisonMaxChart" runat="server" Width="300" ImageLocation="~/Images/ChartsJunk/Chart#UID"
                                    ImageStorageMode="UseHttpHandler" ImageType="Png">
                                    <Titles>
                                        <asp:Title Name="Title1" Text="<%$ Resources:Resource, OpponentAnalyze_MaximalRatingsGraphTitle %>"
                                            Alignment="TopLeft" Font="Arial, 12px, style=Bold">
                                        </asp:Title>
                                    </Titles>
                                    <Legends>
                                        <asp:Legend IsTextAutoFit="true" Name="Default" Font="Arial, 12px, style=Bold" Docking="Top">
                                        </asp:Legend>
                                    </Legends>
                                    <Series>
                                        <asp:Series Name="<%$ Resources:Resource, OpponentAnalyze_SeriesMyMaximums %>" ChartType="Column"
                                            IsValueShownAsLabel="true">
                                        </asp:Series>
                                        <asp:Series Name="<%$ Resources:Resource, OpponentAnalyze_SeriesHisMaximums %>" ChartType="Column"
                                            IsValueShownAsLabel="true">
                                        </asp:Series>
                                    </Series>
                                    <ChartAreas>
                                        <asp:ChartArea Name="ChartArea2" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                                            BackSecondaryColor="White" BackColor="Gainsboro" ShadowColor="Transparent" BackGradientStyle="TopBottom">
                                            <Area3DStyle Rotation="10" Perspective="10" Inclination="15" IsRightAngleAxes="False"
                                                WallWidth="0" IsClustered="False"></Area3DStyle>
                                            <AxisY LineColor="64, 64, 64, 64" IsLabelAutoFit="False" Interval="Auto">
                                                <LabelStyle Font="Arial, 8.25pt, style=Bold" />
                                                <MajorGrid LineColor="64, 64, 64, 64" />
                                            </AxisY>
                                            <AxisX LineColor="64, 64, 64, 64" IsLabelAutoFit="False">
                                                <LabelStyle Font="Arial, 8.25pt, style=Bold" IsStaggered="True" />
                                                <MajorGrid LineColor="64, 64, 64, 64" />
                                                <CustomLabels>
                                                    <asp:CustomLabel Text="<%$ Resources:Resource, OpponentAnalyze_GoalKeepersAxisXTitle %>"
                                                        FromPosition="0.5" ToPosition="1.5" />
                                                    <asp:CustomLabel Text="<%$ Resources:Resource, OpponentAnalyze_DefenceAxisXTitle %>"
                                                        FromPosition="1.5" ToPosition="2.5" />
                                                    <asp:CustomLabel Text="<%$ Resources:Resource, OpponentAnalyze_MidfieldAxisXTitle %>"
                                                        FromPosition="2.5" ToPosition="3.5" />
                                                    <asp:CustomLabel Text="<%$ Resources:Resource, OpponentAnalyze_AttackAxisXTitle %>"
                                                        FromPosition="3.5" ToPosition="4.5" />
                                                </CustomLabels>
                                            </AxisX>
                                        </asp:ChartArea>
                                    </ChartAreas>
                                </asp:Chart>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <br />
                </ContentTemplate>
            </asp:UpdatePanel>
            <asp:Panel ID="HeadToHeadPanel" runat="server">
                <asp:Label ID="HeadToHeadTitleLabel" runat="server" CssClass="team_name" Text="<%$ Resources:Resource, OpponentAnalyze_HeadToHead%>"></asp:Label>
                <asp:GridView ID="HeadToHeadMatchesGridview" runat="server" AutoGenerateColumns="false"
                    SkinID="Professional" AllowPaging="true" DataSourceID="HeadToHeadDataSource"
                    PageSize="10">
                    <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
                        Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
                    <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
                    <EmptyDataTemplate>
                        <asp:Label ID="EmptyDataLabel" runat="server" SkinID="GridLabel" Text="<%$ Resources:Resource, OpponentAnalyze_NoMatches %>"></asp:Label>
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="4%">
                            <ItemTemplate>
                                <asp:Image ID="MatchTypeImage" runat="server" ImageUrl='<%# GetNivdalData.GetNivdalData.GetIconByMatchType(Eval("MatchType")) %>'
                                    ToolTip='<%# GetNivdalData.GetNivdalData.GetToolTipByMatchType(Eval("MatchType")) %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Date %>">
                            <ItemTemplate>
                                <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("MatchDate") %>' SkinID="GridLabel"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:HyperLink ID="MatchLink" runat="server" Text='<%# Eval("HomeTeamName") + " - " + Eval("AwayTeamName") %>'
                                    NavigateUrl='<%# "~/MatchPage.aspx?MatchId=" + Eval("MatchId") %>' SkinID="GreenTitleHyperLink"></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Label ID="ResultLabel" runat="server" Text='<%# Eval("Result") %>' SkinID="GridLabel"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="HeadToHeadDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="Nivdal_HeadToHeadGames" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                <br />
                <br />
            </asp:Panel>
            <asp:UpdatePanel ID="BestPlayersPanel" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Label ID="BestPlayersTitleLabel" runat="server" CssClass="team_name" Text="<%$ Resources:Resource, OpponentAnalyze_BestPlayersTitle  %>"></asp:Label>
                    <asp:DropDownList ID="BestPositionsDDL" runat="server" OnSelectedIndexChanged="RefreshPlayersGrid"
                        AutoPostBack="true">
                        <asp:ListItem Selected="True" Value="5" Text="<%$ Resources:Resource, OpponentAnalyze_AllPositionsText  %>"></asp:ListItem>
                        <asp:ListItem Value="1" Text="<%$ Resources:Resource, SearchTransferMarket_GoalKeepersText  %>"></asp:ListItem>
                        <asp:ListItem Value="2" Text="<%$ Resources:Resource, SearchTransferMarket_DefendersText  %>"></asp:ListItem>
                        <asp:ListItem Value="3" Text="<%$ Resources:Resource, SearchTransferMarket_MidfieldersText  %>"></asp:ListItem>
                        <asp:ListItem Value="4" Text="<%$ Resources:Resource, SearchTransferMarket_ForwardsText  %>"></asp:ListItem>
                    </asp:DropDownList>
                    <br />
                    <asp:GridView ID="BestPlayerGrid" runat="server" DataSourceID="BestPlayersDataSource"
                        AutoGenerateColumns="false" AllowPaging="false" SkinID="Professional">
                        <EmptyDataTemplate>
                            <asp:Label ID="NoPlayersLabel" runat="server" SkinID="GridLabel" Text="<%$ Resources:Resource, ListTransferListedPlayers_NothingfoundLabel  %>"></asp:Label>
                        </EmptyDataTemplate>
                        <Columns>
                            <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Player %>">
                                <ItemTemplate>
                                    <asp:HyperLink ID="PlayerLink" runat="server" NavigateUrl='<%# "~/Player.aspx?Id=" + Eval("PlayerId") %>'
                                        Text='<%# Eval("PlayerName") %>' SkinID="GreenTitleHyperLink"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="<%$ Resources:Resource, MatchRatings_RatingHeaderToolTip  %>"
                                DataField="Rating" ItemStyle-CssClass="NewsItemStyle" />
                            <asp:BoundField HeaderText="<%$ Resources:Resource, Global_Position  %>" DataField="PositionName"
                                ItemStyle-CssClass="NewsItemStyle" />
                            <asp:BoundField HeaderText="<%$ Resources:Resource, Global_Date  %>" DataField="MatchDate"
                                ItemStyle-CssClass="NewsItemStyle" />
                            <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Match  %>">
                                <ItemTemplate>
                                    <asp:HyperLink ID="MatchHyperlink" runat="server" NavigateUrl='<%# "~/MatchPage.aspx?MatchId=" + Eval("MatchId") %>'
                                        Text='<%# Eval("HomeTeamName") + " - " + Eval("AwayTeamName") %>' SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <asp:SqlDataSource ID="BestPlayersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                        SelectCommand="Nivdal_GetBestPlayersInPosition" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="BestPositionsDDL" Type="Decimal" Size="12" Name="Position"
                                PropertyName="SelectedValue" />
                            <asp:ControlParameter ControlID="Team2HiddenField" Type="Decimal" Size="12" Name="TeamId"
                                PropertyName="Value" />
                            <asp:ControlParameter ControlID="LanguageHiddenField" Type="Decimal" Size="3" Name="Language"
                                PropertyName="Value" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </ContentTemplate>
            </asp:UpdatePanel>
            <br />
            <br />
            <table style="width: 100%;">
                <tr>
                    <td style="width: 50%; vertical-align: top;">
                        <asp:Label ID="InjuredWarnedplayersTitleLabel" runat="server" Text="<%$ Resources:Resource, OpponentAnalyze_InjuredWarnedPlayers %>"
                            CssClass="team_name"></asp:Label>
                        <asp:GridView ID="InjuredWarnedPlayersGrid" runat="server" SkinID="Professional"
                            AutoGenerateColumns="false" AllowPaging="false" DataSourceID="InjuredWarnedPlayersDatasource">
                            <EmptyDataTemplate>
                                <asp:Label ID="NoInjuredWarnedPlayers" runat="server" SkinID="GridLabel" Text="<%$ Resources:Resource, OpponentAnalyze_NoInjuredWarnedPlayers %>"></asp:Label>
                            </EmptyDataTemplate>
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:HyperLink ID="PlayerHyperlink" runat="server" SkinID="GreenTitleHyperLink" ToolTip='<%# Eval("PlayerName") %>'
                                            NavigateUrl='<%# "~/Player.aspx?Id=" + Eval("PlayerId") %>' Text='<%# Eval("PlayerName") %>'></asp:HyperLink>
                                        &nbsp;
                                        <asp:Image ID="YellowCard1Image" runat="server" ImageUrl="~/Images/Icons/players_yellow.jpg"
                                            Visible='<%# Eval("OneYellowVisible") %>' ToolTip='<%# Eval("WarningsToolTip") %>' />
                                        <asp:Image ID="YellowCard2Image" runat="server" ImageUrl="~/Images/Icons/players_yellow.jpg"
                                            Visible='<%# Eval("SecondYellowVisible") %>' ToolTip='<%# Eval("WarningsToolTip") %>' />
                                        <asp:Image ID="RedCardImage" runat="server" ImageUrl="~/Images/Icons/players_red.jpg"
                                            Visible='<%# Eval("RedVisible") %>' ToolTip='<%# Eval("WarningsToolTip") %>' />
                                        &nbsp;
                                        <asp:Image ID="InjuryImage" runat="server" ImageUrl='<%# InjuryIconName(Eval("InjuryRowData")) %>'
                                            ToolTip='<%# Eval("Injury") %>' Visible='<%# Eval("IsInjured") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <asp:SqlDataSource ID="InjuredWarnedPlayersDatasource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                            SelectCommand="Nivdal_GetInjuredAndWarnedPlayersOfTeam" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="Team2HiddenField" Type="Decimal" Size="12" Name="TeamId"
                                    PropertyName="Value" />
                                <asp:ControlParameter ControlID="LanguageHiddenField" Type="Decimal" Size="3" Name="Language"
                                    PropertyName="Value" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                    <td style="width: 50%; vertical-align: top; padding-left: 10px; padding-right: 10px;">
                        <asp:Label ID="CoachInfoTitleLabel" runat="server" CssClass="team_name" Text="<%$ Resources:Resource, Global_Coach %>"></asp:Label>
                        <asp:FormView ID="CoachFormView" runat="server" DataSourceID="GetCoachDetailsSqlDataSource">
                            <ItemTemplate>
                                <asp:ImageButton ID="FlagImageButton" runat="server" PostBackUrl='<%# Eval("Id", "country.aspx?CountryId={0}") %>'
                                    ToolTip='<%# Bind("CountryName") %>' ImageUrl='<%# Eval("Flag", "~/Images/Flags/{0}") %>' />
                                <asp:HyperLink ID="Name" runat="server" Text='<%# Eval("Name") %>' NavigateUrl='<%# Eval("Id", "coach.aspx?Id={0}") %>'
                                    SkinID="GreenTitleHyperLink"></asp:HyperLink>
                                <br />
                                <asp:Label ID="LevelTitleLabel" runat="server" Text="<%$ Resources:Resource, Global_Level %>"
                                    SkinID="InfoLabel"></asp:Label>
                                <asp:Label ID="LevelLabel" runat="server" Text='<%# Eval("[Level]") %>' SkinID="GridLabel" />
                                <br />
                                <asp:Label ID="CharismaTitleLabel" runat="server" Text="<%$ Resources:Resource, Global_Charisma %>"
                                    SkinID="InfoLabel"></asp:Label>
                                <asp:Label ID="CharismaLabel" runat="server" Text='<%# Eval("Charisma") %>' SkinID="GridLabel"></asp:Label>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <asp:Label ID="NoCoachLabel" runat="server" Text="<%$ Resources:Resource, NocoachLabelText %>"
                                    SkinID="GridLabel"></asp:Label>
                            </EmptyDataTemplate>
                        </asp:FormView>
                        <asp:SqlDataSource ID="GetCoachDetailsSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                            SelectCommand="Nivdal_TrainingShowTeamCoachDetails" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="Team2HiddenField" Type="Decimal" Size="12" Name="TeamId"
                                    PropertyName="Value" />
                                <asp:ControlParameter ControlID="LanguageHiddenField" Type="Decimal" Size="3" Name="Language"
                                    PropertyName="Value" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
            </table>
            <br />
            <br />
            <asp:Label ID="LatestTransfersTitleLabel" runat="server" CssClass="team_name" Text="<%$ Resources:Resource, Follow_LatersTransfersLabelText %>"></asp:Label>
            <asp:GridView ID="LatestTransfersGridview" runat="server" DataSourceID="LatestTransfersDataSource"
                AutoGenerateColumns="False" SkinID="Professional" AllowPaging="false">
                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Date %>">
                        <ItemTemplate>
                            <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>' SkinID="GridLabel"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_PLayer %>">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Player name") %>' SkinID="BlackHyperLinkSkin"
                                NavigateUrl='<%# Eval("PlayerId", "Player.aspx?Id={0}") %>' Visible='<%# !(bool)Eval("IsCoach") %>'></asp:HyperLink>
                            <asp:HyperLink ID="CoachLink" runat="server" Text='<%# Eval("Player name") %>' SkinID="BlackHyperLinkSkin"
                                NavigateUrl='<%# Eval("PlayerId", "coach.aspx?Id={0}") %>' Visible='<%# Eval("IsCoach") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Resource, PlayerTransfers_FromTeam %>">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink2" runat="server" Text='<%# Eval("From team") %>' SkinID="BlackHyperLinkSkin"
                                NavigateUrl='<%# Eval("SellerId", "TeamHomePage.aspx?TeamId={0}") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Resource, PlayerTransfers_ToTeamHeaderText %>">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink3" runat="server" Text='<%# Eval("To team") %>' SkinID="BlackHyperLinkSkin"
                                NavigateUrl='<%# Eval("BuyerId ", "TeamHomePage.aspx?TeamId={0}") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Resource, TeamTransfers_TransferSumHeaderText %>">
                        <ItemTemplate>
                            <asp:Label ID="TransferSumLabel" runat="server" Text='<%# GetNivdalData.GetNivdalData.FormattedNumber(Eval("Transfer Sum")) %>'
                                SkinID="GridLabel"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <asp:Label ID="NoTransferedLabel" runat="server" Text="<%$ Resources:Resource, OpponentAnalyze_NoTransfersLastMonthText %>"
                        SkinID="GridLabel"></asp:Label>
                </EmptyDataTemplate>
            </asp:GridView>
            <asp:SqlDataSource ID="LatestTransfersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                SelectCommand="Nivdal_GetLatestTransfersForFollow" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:ControlParameter ControlID="Team2HiddenField" Type="Decimal" Size="12" Name="TeamId"
                        PropertyName="Value" />
                </SelectParameters>
            </asp:SqlDataSource>
            <br />
            <br />
            <asp:Label ID="LatestMatchesTitleLabel" runat="server" CssClass="team_name" Text="<%$ Resources:Resource, Player_LatestMatchesTitleLabel %>"></asp:Label>
            <asp:GridView ID="LatestMatchesGridview" runat="server" SkinID="Professional" AllowPaging="false"
                AutoGenerateColumns="false" DataSourceID="LatestMatchesDataSource">
                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Time %>" ItemStyle-Width="20%">
                        <ItemTemplate>
                            <asp:Label ID="TimeLabel" runat="server" Text='<%# Eval("Time")%>' SkinID="GridLabel"> </asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-Width="4%">
                        <ItemTemplate>
                            <asp:Image ID="MatchTypeImage" runat="server" ImageUrl='<%# GetNivdalData.GetNivdalData.GetIconByMatchType(Eval("Type")) %>'
                                ToolTip='<%# GetNivdalData.GetNivdalData.GetToolTipByMatchType(Eval("Type")) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-Width="66%">
                        <ItemTemplate>
                            <asp:HyperLink ID="MatchTitleHyperLink" runat="server" Text='<%# Eval("MatchTitle") %>'
                                NavigateUrl='<%# Eval("MatchId", "MatchPage.aspx?MatchId={0}") %>' SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Resource, TeamPastMatches_ScoreHeaderText %>"
                        ItemStyle-Width="10%">
                        <ItemTemplate>
                            <asp:Label ID="ScoreLabel" runat="server" Text='<%# Eval("Score") %>' SkinID="GridLabel"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <asp:Label ID="NoMatchesFoundLabel" runat="server" Text="<%$ Resources:Resource, TeamPastMatches_NoMatchesFoundLabel %>"
                        SkinID="GridLabel"></asp:Label>
                </EmptyDataTemplate>
            </asp:GridView>
            <asp:SqlDataSource ID="LatestMatchesDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                SelectCommand="Nivdal_GetTeamLastWeekMatches" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:ControlParameter ControlID="Team2HiddenField" Type="Decimal" Size="12" Name="TeamId"
                        PropertyName="Value" />
                    <asp:ControlParameter ControlID="LanguageHiddenField" Type="Decimal" Size="3" Name="Language"
                        PropertyName="Value" />
                </SelectParameters>
            </asp:SqlDataSource>
            <br />
            <br />
            <asp:Label ID="NextWeekMatchesLabel" runat="server" CssClass="team_name" Text="<%$ Resources:Resource, OpponentAnalyze_NextWeekMatchesText %>"></asp:Label>
            <asp:GridView ID="CloseMatchesGridView" runat="server" SkinID="Professional" AllowPaging="false"
                AutoGenerateColumns="false" DataSourceID="CloseMatchesDataSource">
                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Time %>" ItemStyle-Width="20%">
                        <ItemTemplate>
                            <asp:Label ID="TimeLabel" runat="server" Text='<%# Eval("Time")%>' SkinID="GridLabel"> </asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-Width="4%">
                        <ItemTemplate>
                            <asp:Image ID="MatchTypeImage" runat="server" ImageUrl='<%# GetNivdalData.GetNivdalData.GetIconByMatchType(Eval("Type")) %>'
                                ToolTip='<%# GetNivdalData.GetNivdalData.GetToolTipByMatchType(Eval("Type")) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-Width="76%">
                        <ItemTemplate>
                            <asp:HyperLink ID="MatchTitleHyperLink" runat="server" Text='<%# Eval("MatchTitle") %>'
                                NavigateUrl='<%# Eval("MatchId", "MatchPage.aspx?MatchId={0}") %>' SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <asp:Label ID="NoMatchesFoundLabel" runat="server" Text="<%$ Resources:Resource, TeamPastMatches_NoMatchesFoundLabel %>"
                        SkinID="GridLabel"></asp:Label>
                </EmptyDataTemplate>
            </asp:GridView>
            <asp:SqlDataSource ID="CloseMatchesDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                SelectCommand="Nivdal_GetTeamNextWeekMatches" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:ControlParameter ControlID="Team2HiddenField" Type="Decimal" Size="12" Name="TeamId"
                        PropertyName="Value" />
                    <asp:ControlParameter ControlID="LanguageHiddenField" Type="Decimal" Size="3" Name="Language"
                        PropertyName="Value" />
                </SelectParameters>
            </asp:SqlDataSource>
        </div>
    </div>
</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, OpponentAnalyze_PageTytle  %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
